package com.jiuyuan.service.impl;

import com.jiuyuan.entity.Menu;
import com.jiuyuan.entity.RoleMenu;
import com.jiuyuan.mapper.RoleMapper;
import com.jiuyuan.mapper.RoleMenuMapper;
import com.jiuyuan.service.IRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jiuyuan
 * @since 2023-02-15
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements IRoleMenuService {
    @Autowired
    RoleMenuMapper roleMenuMapper;


    @Override
    public int saveRoleMenu(int id, Integer[] ids) {
        return roleMenuMapper.saveRoleMenu(id,ids);
    }
}
